package Homework4

import akka.actor.{ActorSystem, Props}

object Fight {
  def main(args: Array[String]): Unit = {
    val myFactory: ActorSystem = ActorSystem("myFactory")
    val hfh = myFactory.actorOf(Props[AActor], "A")
    val qf = myFactory.actorOf(Props[BActor], "B")

    println("AActor出招了")
    println("start, ok!")
    println("我打")
    qf.tell("我打", hfh)

  }
}
